home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16372 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  980 b 

  1. Path: druid.borland.com!usenet
  2. From: pete@borland.com (Pete Becker)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: word vs. byte alignment option
  5. Date: 10 Apr 1996 15:56:24 GMT
  6. Organization: Borland International
  7. Message-ID: <4kgln8$6lm@druid.borland.com>
  8. References: <4kdq3b$lhn@sloth.swcp.com>
  9. NNTP-Posting-Host: pbecker.borland.com
  10. Mime-Version: 1.0
  11. Content-Type: Text/Plain; charset=ISO-8859-1
  12. X-Newsreader: WinVN 0.99.5
  13.  
  14. In article <4kdq3b$lhn@sloth.swcp.com>, dvines@sparton.com says...
  15. >
  16. >Anybody ever have trouble with Borland C++ compiler word vs. byte 
  17. >alignment option?  When I attempt to load a word aligned array into a byte 
  18. >aligned array, the data in the byte aligned array is off by one byte.
  19. >
  20. >The arrays come from separate modules with different alignement options 
  21. >set.
  22. >
  23. >I thought the alignment option only affected speed or memory usage...why 
  24. >doesn't the compiler figure out how to handle the data right?
  25.  
  26. Without a code example this is impossible to answer.
  27.  
  28.